<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>新闻列表</title>
	<link rel="stylesheet" href="../css/bootstrap.min.css" />
	<link rel="stylesheet" href="../css/jquery.validity.css" />
	<style type="text/css">
		body{
			background-image: url("../img/batthern.png");
		}
		
		.table th, .table td{
			text-align: center;
		}
	</style>
</head>
<body>
	<%@ include file="include/top.jsp" %>
	
	<div class="container" style="margin-top: 60px;">
		<div class="row">
			<jsp:include page="include/left.jsp">
				<jsp:param value="anewslist" name="tag"/>
			</jsp:include>
			<div class="span9">
				<div class="wall" style="min-height: 400px;" id="right">
				<h3>新闻列表</h3>
			<hr />
			    <table class="table table-striped">
				    <thead>
					    <tr>
						    <th>新闻名称</th>
						    <th>作者</th>
						    <th>发布时间</th>
						    <th>阅读次数</th>
						    <th>操作</th>
					    </tr>
				    </thead>
				    <tbody>
					    <s:iterator value="newslist" var="n">
					    	<tr>
							    <td><a href="seenews.jspx?id=<s:property value='#n.id'/>" target="_blank"><s:property value="#n.title"/></a></td>
							    <td><s:property value="#n.writer"/></td>
							    <td><s:property value="#n.createtime"/></td>
							    <td><s:property value="#n.num"/></td>
							    <td><a href="editnews.jspx?id=<s:property value='#n.id'/>">修改</a></td>
						    </tr>
					    </s:iterator>
				    </tbody>
			    </table>
		</div>
			</div>
		</div>
				<%@ include file="include/footer.jsp" %>
	</div>

	<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../js/welcome.js"></script>
	
	<script type="text/javascript">
		$(function() {
			$.welcome($("#welcome"));
		});
	</script>
</body>
</html>